<include file="Public/header" />
<title></title>
</head>
<body>
<div class="page-container">
    <form class="form form-horizontal" id="form-article-add">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>企业名称：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="<{$list.company}>" placeholder=""  name="company">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">手机号：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" disabled class="input-text" value="<{$list.username}>" placeholder="手机号码" name="username">
            </div>
        </div>
		<div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">昵称：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" disabled class="input-text" value="<{$list.nick_name}>" placeholder="昵称" name="nick_name">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">密码：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="password" class="input-text" value="" placeholder="不填写则不更改" name="pwd">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">重复密码：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="password" class="input-text" value="" placeholder="不填写则不更改" name="pwd2">
            </div>
        </div>
        <!-- <div class="row cl"> -->
            <!-- <label class="form-label col-xs-4 col-sm-2">姓名：</label> -->
            <!-- <div class="formControls col-xs-8 col-sm-9"> -->
                <!-- <input type="text" class="input-text" value="<{$list.name}>" placeholder="" name="name"> -->
            <!-- </div> -->
        <!-- </div> -->
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">E-mail：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="<{$list.email}>" placeholder="" name="email">
            </div>
        </div>
		<div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">user_code：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" disabled value="<{$list.user_code}>" placeholder="" name="user_code">
            </div>
        </div>
		<div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">user_key：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" disabled value="<{$list.user_key}>" placeholder="" name="user_key">
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                <button onClick="save('<{$list.id}>')" class="btn btn-secondary radius" type="button"><i class="Hui-iconfont">&#xe632;</i> 保存</button>
                <button onClick="cancel()" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
            </div>
        </div>
    </form>
</div>
<include file="Public/footer_js" />
<script>
    function save(id){
        $.post('__CONTROLLER__/editD',{
            id:id,
            company:$("input[name=company]").val(),
            <!-- name:$("input[name=name]").val(), -->
            pwd:$("input[name=pwd]").val(),
            pwd2:$("input[name=pwd2]").val(),
            email:$("input[name=email]").val(),
        },function (msg){
            layer.msg(msg.data);
            if(msg.flag==1){
                setTimeout(function (){
                    parent.layer.closeAll();
                    parent.location.reload();
                },800);
            }
        },'json');
    }
    function cancel(){
        parent.layer.closeAll();
    }
</script>
</body>
</html>